package com.active.service.impl;

import com.active.bean.ActiveUser;
import com.active.dao.ActiveUserMapper;
import com.active.service.IActiveUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ActiveUserServiceImpl implements IActiveUserService {

    @Autowired
    private ActiveUserMapper activeUserMapper;

    @Override
    public ActiveUser getUserById(Integer userId) throws Exception {
        return activeUserMapper.getUserById(userId);
    }

    @Override
    public ActiveUser getUserByPassword(String name, String password) throws Exception {
        return activeUserMapper.getUserByPassword(name,password);
    }
}
